﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;

namespace WCFMINERP.MODEL.Order
{
    public class ProductInfo : IEqualityComparer<ProductInfo>
    {
        public int productid { get; set; }

        public string productName { get; set; }

        public double width { get; set; }

        public double height { get; set; }

        public int pageNum { get; set; }

        public int status { get; set; }

        public decimal areaPrice { get; set; }

        public decimal unitPrice { get; set; }

        public decimal appendPrice { get; set; }

        public string mnemonicCode { get; set; }

        public double coverWidth { get; set; }

        public double coverHeight{get;set;}

        public string costTypeName { get; set; }

        public string productCategoryName { get; set; }
        
        public int usedTimes { get; set; }

        public bool isChecked { get; set; }
        //public string CommonChargeItemName { get; set; }
        public string CommonChargeItemIdList { get; set; }//商户产品和公共收费项目关联


        #region  IEqualityComparer<ProductInfo> 成员

        public bool Equals(ProductInfo x, ProductInfo y)
        {
            if (x == null || y == null)
            {
                return false;
            }
            if (x.productid==y.productid)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

        public int GetHashCode(ProductInfo obj)
        {
            return obj.ToString().GetHashCode();
        }

        #endregion

    }
}
